<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var datagrid;
	var model_name = "/admin";
	var model_title="操作员";
	$(function() {
		$("#edit_roleId").combobox({    
		    url: '/role/combobox',   
		    valueField:'id',    
		    textField:'name',
		    width:150
		}); 
		
		datagrid=$('#form_datagrid').datagrid({
		 	url:'/admin/grid',
		 	columns:[[    
		        {field:'id',title:'编号',width:100,checkbox:true},
		        //{field:'password',title:'密码',align:'right',width:200},
		        {field:'name',title:'登录账号',width:150},
		        {field:'roleName',title:'角色',width:150},
		        {field:'status',title:'状态',width:80,
		      		formatter:function(value,row,index){
			      		if(row.status==1){
			      			return "正常";
			      		}else{
			      			return "冻结";
			      		}
					}
				},
				{field:'phone',title:'手机',width:150},
		        {field:'email',title:'邮箱',width:200},
		        {field:'created_time',title:'创建时间',width:200}
		    ]]
		})
	})
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>
</head>
	<#include "/common/seach.html" />
	<@seach>
	<td>姓名</td>
	<td><input type="text" name="LIKE_a.name"></td>
	<td>角色</td>
	<td><input id="edit_roleId" name="EQ_r.id"></td> 
	</@seach>
</@layout>